package com.gary.springboot.com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;

/**
 * @author pengrui
 * @date 2020/11/17 - 14:47
 */
@Controller
public class HelloController {

    @RequestMapping("/success")
    public String hello(HashMap<String, Object> map) {
        map.put("success", "成功");
        String[] strings = new String[]{"zhangsan", "lisi", "wangwu", "maliu"};
        map.put("list", strings);
        map.put("hello", "<h1>HELLO</h1>");
        return "success";
    }
}
